//
// Created by Mengyu Li on 2021/4/26.
//

import Foundation

public extension URL {
    init?(string: String?) {
        guard let string = string else { return nil }
        guard let url = URL(string: string) else { return nil }
        self = url
    }
}
